package st.mybatis01.service.impl;

import org.springframework.stereotype.Service;
import st.mybatis01.dao.ArticleMapper;
import st.mybatis01.pojo.Article;
import st.mybatis01.service.ArticleService;

import javax.annotation.Resource;

/**
 * Created by sagagyq on 2017/3/15.
 */
@Service("articleService")
public class ArticleServiceImpl implements ArticleService{
    @Resource
    private ArticleMapper articleMapper;

    @Override
    public Article selectArticle(int id) {
        return articleMapper.selectByPrimaryKey(id);
    }


}
